home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 6
/
QRZ Ham Radio Callsign Database - Volume 6.iso
/
mac
/
files
/
amiga
/
akit29m.lha
/
AmigaNOS
/
REXX
/
Net2Nos.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1993-08-07
|
1KB
|
36 lines
/* Convert HOSTS.NET to DOMAIN.TXT */
/* Trace R */
Call Open(net,"TCPIP:Hosts.NET",Read)
Call Open(nos,"TCPIP:Domain.TXT",Write)
call open(netwin,"raw:0/11/640/150/Hosts.NET")
call open(noswin,"raw:100/100/440/150/Domain.TXT")
Call WriteLn(nos,'# HOSTS.NET converted to DOMAIN.TXT format for NOS version')
Call WriteLn(nos,'# of KA9Q TCP/IP on '||DATE()||' by G1YYH')
Call WriteLn(nos,'#')
Do Until EOF(net)
inline=readln(net)
IF LEFT(inline,1)='#' Then
Call WriteLn(nos,inline)
Else Do
Parse Var inline ipaddr ampr callsign '#' cmt
If ipaddr~='' Then Do
Call Writeln(netwin,inline)
Call Writeln(noswin,'# '||cmt)
Call Writeln(noswin,SPACE(callsign)||'. IN CNAME '||SPACE(ampr)||'.')
Call Writeln(noswin,SPACE(ampr)||'. IN A '||ipaddr)
Call Writeln(nos,'# '||cmt)
Call Writeln(nos,SPACE(callsign)||'. IN CNAME '||SPACE(ampr)||'.')
Call Writeln(nos,SPACE(ampr)||'. IN A '||ipaddr)
Call Writeln(noswin,space(callsign)||'. IN A '||ipaddr)
Call Writeln(nos,space(callsign)||'. IN A '||ipaddr)
End
End
End
Call Close(net)
Call Close(nos)